package com.blb.ssh.dao;


import java.util.List;

import com.blb.ssh.entity.Menu;
import com.blb.ssh.entity.Role;
import com.blb.ssh.entity.User;

public interface UserDao {
	
	/**
	 * 根据用户名查询
	 * @param username
	 * @return
	 */
	User getUserByUserName(String username);
	//获取数据总条数
	Long getUserCount();
	//分页查询
	List<User> getUserListByMap(int page, int rows);
	//批量删除
	boolean batchDeleteUser(String[] ids);
	//用戶新增
	boolean addUser(User user);
	//用戶修改
	boolean editUser(User user);
	//查詢角色信息
	List<Role> getAllRoleList();
	List<Menu> buttonControl(int roleId, int menui);

}
